<template>
  <div class="dashboard app-container">
    <BiHomeData :user-id="userInfo.id"></BiHomeData>
  </div>
</template>

<script>
import { mapGetters } from 'vuex'

export default {
  name: 'Dashboard',
  computed: {
    ...mapGetters(['userInfo'])
  },
  async mounted() {
    await this.$store.dispatch('user/selectMenuRouter', {})
    this.$AccessReport.report('zhangyu-dashboard', ['首页'])
  }
}
</script>
<style lang="scss" scoped>
.dashboard {
  position: absolute;
  height: calc(100% - 35px);
  width: calc(100% - 20px);
  display: flex;
  .dashboard-box {
    position: relative;
    width: 100%;
    height: 100%;
  }
  .text {
    font-size: 24px;
    white-space: pre-wrap;
    text-align: left;
  }
  img {
    // margin-top: 35px;
    // max-width: 70%;
    // max-height: calc(80% - 75px);
    max-width: 90%;
    max-height: 90%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }
}
</style>
